<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>{{title}}</title>
  </head>
  <body>
    <script>
      {{if(options.superDomain)}}
        document.domain = '{{superDomain}}';
      {{/if}}

      (function(parent) {
        var Cypress = window.Cypress = parent.Cypress;
        if (!Cypress) {
          throw new Error("Tests cannot run without a reference to Cypress!");
        }
      })(window.opener || window.parent);
    </script>
    <script>{{privilegedChannel | safe}}</script>
    <script>
      window.Cypress.onSpecWindow(window, {{scripts | safe}});
    </script>
  </body>
</html>
